/*
CREATE TABLE "conversion_info" (
  "sequence_nbr" varchar PRIMARY KEY NOT NULL,
  "conversion_string" varchar,
  "conversion_explain" varchar,
  "source" varchar,
  "source_code" varchar,
  "rule_id" varchar,
  "de_id" varchar,
  "agency_code" varchar,
  "product_code" varchar,
  "rec_status" varchar DEFAULT ( 'A' ),
  "rec_date" varchar,
  "extend1" varchar,
  "extend2" varchar,
  "extend3" varchar,
  "description" varchar,
"rec_user_code" varchar
);
*/

use rbatis::crud;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct ConversionInfo {
    pub sequence_nbr: String,
    pub conversion_string: Option<String>,
    pub conversion_explain: Option<String>,
    pub source: Option<String>,
    pub source_code: Option<String>,
    pub rule_id: Option<String>,
    pub de_id: Option<String>,
    pub rec_user_code: Option<String>,
    pub rec_status: Option<String>,
    pub rec_date: Option<String>,
    pub extend1: Option<String>,
    pub extend2: Option<String>,
    pub extend3: Option<String>,
    pub description: Option<String>,
}
crud!(ConversionInfo {}, "conversion_info");
